﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AnguaRPGEngine.Library.Forms
{
    public partial class EditorTools : Form
    {
        public delegate void DeleteClickEventHandler();
        public delegate void RotateCounterClockwiseClickEventHandler();
        public delegate void RotateClockwiseClickEventHandler();
        public event DeleteClickEventHandler DeleteClicked;
        public event RotateClockwiseClickEventHandler RotateClockwiseClicked;
        public event RotateCounterClockwiseClickEventHandler RotateCounterClockwiseClicked;
        public EditorTools()
        {
            InitializeComponent();
        }

        private void btnDelete_Click(object sender, EventArgs e)
        {
            if (DeleteClicked != null)
            {
                DeleteClicked();
            }
            this.Visible = false;
        }

        private void btnRotateCC_Click(object sender, EventArgs e)
        {
            if (RotateCounterClockwiseClicked != null)
            {
                RotateCounterClockwiseClicked();
            }
        }

        private void btnRotateC_Click(object sender, EventArgs e)
        {
            if (RotateClockwiseClicked != null)
            {
                RotateClockwiseClicked();
            }
        }
    }
}
